package com.ittest.controller;


import com.baomidou.mybatisplus.core.metadata.IPage;
import com.ittest.domain.Book;
import com.ittest.service.IBookservice;
import com.ittest.service.MsgService;
import com.ittest.utils.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.io.IOException;


@RestController
@RequestMapping("/msg")
public class MsgController {


    @Autowired
    private MsgService msgService;

    @GetMapping("{tele}")
    public String get(@PathVariable String tele){
        return msgService.get(tele);
    }



    @PostMapping
    public boolean check(String tele,String code) {

       return msgService.check(tele,code);
    }





}
